function getDateTime() {
    const now = new Date();
  
    const year = now.getFullYear();
    const month = now.getMonth() + 1; // 月份从0开始，所以需要加1
    const day = now.getDate();
    const hours = now.getHours();
    const minutes = now.getMinutes();
    const seconds = now.getSeconds();
  
    return {
      year,
      month,
      day,
      hours,
      minutes,
      seconds
    };
  }
  
  module.exports = getDateTime;
  